﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace CalculatorGUI
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
            graphControl1.Mp = this;
        }
        
        private void CalcButton_Click(object sender, RoutedEventArgs e)
        {
            CalcPanel.Visibility = Visibility.Visible;
            GraphPanel.Visibility = Visibility.Collapsed;
            EqxPanel.Visibility = Visibility.Collapsed;
        }

        private void GraphButton_Click(object sender, RoutedEventArgs e)
        {
            GraphPanel.Visibility = Visibility.Visible;
            CalcPanel.Visibility = Visibility.Collapsed;
            EqxPanel.Visibility = Visibility.Collapsed;
            graphControl1.UpdateGraph();
        }

        private void EqxButton_Click(object sender, RoutedEventArgs e)
        {
            EqxPanel.Visibility = Visibility.Visible;
            GraphPanel.Visibility = Visibility.Collapsed;
            CalcPanel.Visibility = Visibility.Collapsed;
        }

        
    }
}